package thinkingJava.chapter15;

import java.util.ArrayList;
import java.util.List;

public class ListOfInt {
	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < 5; i ++) {
			list.add(i);
		}
		for (int i : list) {
			System.out.print( i + " ");
		}
	}
}
